﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Accountant
{
    public partial class accept_Save_Fees : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = int.Parse(Request.Form["id"]);
            int exp_date = int.Parse(Request.Form["exp_date"]);
            string date = Request.Form["date"];

            var get_student = new TblUserController().FetchAll().Where(x=>x.UserId==id).Single();
            new TblStudySaveFeeController().Insert(id, get_student.ClassX, exp_date, DateTime.Parse(date));
            new TblUserController().Update(get_student.UserId, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null);
        }
    }
}